package com.ytjj.qmyx.admin.service.imService.impl;

import com.ytjj.qmyx.admin.mapper.ImKeyClassifyMapper;
import com.ytjj.qmyx.admin.model.ImKeyClassify;
import com.ytjj.qmyx.admin.service.imService.ImKeyClassifyService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@AllArgsConstructor
public class ImKeyClassifyServiceImpl implements ImKeyClassifyService {

    private ImKeyClassifyMapper imKeyClassifyMapper;

    @Override
    public List<ImKeyClassify> classifyList() {
        return imKeyClassifyMapper.classifyList();
    }

    @Override
    public int insertClassify(ImKeyClassify imKeyClassify) {
        return imKeyClassifyMapper.insertClassify(imKeyClassify);
    }

    @Override
    public int updateClassify(ImKeyClassify imKeyClassify) {
        return imKeyClassifyMapper.updateClassify(imKeyClassify);
    }

    @Override
    public int deleteClassify(Integer id) {
        return imKeyClassifyMapper.deleteClassify(id);
    }

    @Override
    public ImKeyClassify selectClassify(Integer id) {
        return imKeyClassifyMapper.selectClassify(id);
    }
}
